package scsc.web.system.forms;

import scsc.web.system.AppActionForm;
import scsc.web.system.data.DocManageData;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.upload.FormFile;

public class DocManageForm
    extends AppActionForm {
  private DocManageData data;
  private FormFile userFile;

  public DocManageForm() {
    super();
    data = new DocManageData();
  }

  public void reset(ActionMapping mapping, HttpServletRequest request) {
    super.reset(mapping, request);
    data.reset();
  }

  public ActionErrors validate(ActionMapping mapping,
                               HttpServletRequest request) {
    ActionErrors errors = new ActionErrors();
    return errors;
  }

  /**
   * Returns the data.
   * @return SysMenuData
   */
  public DocManageData getData() {
    return data;
  }

  /**
   * Sets the data.
   * @param data The data to set
   */
  public void setData(DocManageData data) {
    this.data = data;
  }

  /**
   * Returns the conditionData.
   * @return SysDocManageDataData
   */
  public FormFile getUserFile() {
    return userFile;
  }

  /**
   * Sets the conditionData.
   * @param conditionData The conditionData to set
   */
  public void setUserFile(FormFile userFile) {
    this.userFile = userFile;
  }

}
